<!doctype html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="三类编译过程的代表性编译器(1)前端编译器:Sun的Javac(2)JIT编译器:HotSpot VM的C1,C2编译器–c1,c2是两种JVM的编译器,C2 --server启动慢编译更彻底,性能更高(3)AOT编译器:GNU Compiler for the Java 查看 hotspot编译器版本123java version &amp;quot;1.8.0_121&amp;quot;Java(TM) SE">
<meta property="og:type" content="article">
<meta property="og:title" content="编译器优化">
<meta property="og:url" content="http://yoursite.com/2017/08/26/jvm/深入理解JVM-优化/index.html">
<meta property="og:site_name" content="Tissan">
<meta property="og:description" content="三类编译过程的代表性编译器(1)前端编译器:Sun的Javac(2)JIT编译器:HotSpot VM的C1,C2编译器–c1,c2是两种JVM的编译器,C2 --server启动慢编译更彻底,性能更高(3)AOT编译器:GNU Compiler for the Java 查看 hotspot编译器版本123java version &amp;quot;1.8.0_121&amp;quot;Java(TM) SE">
<meta property="og:updated_time" content="2017-08-27T17:08:20.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="编译器优化">
<meta name="twitter:description" content="三类编译过程的代表性编译器(1)前端编译器:Sun的Javac(2)JIT编译器:HotSpot VM的C1,C2编译器–c1,c2是两种JVM的编译器,C2 --server启动慢编译更彻底,性能更高(3)AOT编译器:GNU Compiler for the Java 查看 hotspot编译器版本123java version &amp;quot;1.8.0_121&amp;quot;Java(TM) SE">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 'undefined',
      author: 'Java程序员'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2017/08/26/jvm/深入理解JVM-优化/"/>





  <title>编译器优化 | Tissan</title>
  














</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Tissan</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2017/08/26/jvm/深入理解JVM-优化/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="罗天翔">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/uploads/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Tissan">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">编译器优化</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-08-26T21:12:09+08:00">
                2017-08-26
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/JVM/" itemprop="url" rel="index">
                    <span itemprop="name">JVM</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
                <i class="fa fa-comment-o"></i>
              </span>
              
                <a href="/2017/08/26/jvm/深入理解JVM-优化/#SOHUCS" itemprop="discussionUrl">
                  <span id="changyan_count_unit" class="post-comments-count hc-comment-count" data-xid="2017/08/26/jvm/深入理解JVM-优化/" itemprop="commentsCount"></span>
                </a>
              
            
          

          
          

          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="三类编译过程的代表性编译器"><a href="#三类编译过程的代表性编译器" class="headerlink" title="三类编译过程的代表性编译器"></a>三类编译过程的代表性编译器</h2><p>(1)前端编译器:Sun的Javac<br>(2)JIT编译器:HotSpot VM的C1,C2编译器–<code>c1,c2是两种JVM的编译器,C2 --server启动慢编译更彻底,性能更高</code><br>(3)AOT编译器:GNU Compiler for the Java</p>
<p>查看 hotspot编译器版本<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">java version &quot;1.8.0_121&quot;</div><div class="line">Java(TM) SE Runtime Environment (build 1.8.0_121-b13)</div><div class="line">Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)</div></pre></td></tr></table></figure></p>
<h3 id="编译器早期优化"><a href="#编译器早期优化" class="headerlink" title="编译器早期优化"></a>编译器早期优化</h3><h4 id="Javac编译器"><a href="#Javac编译器" class="headerlink" title="Javac编译器"></a>Javac编译器</h4><p>1.标注检查<br>– 常量是否已经被声明,变量与=右边是否匹配,常量折叠<br>2.数据及控制流分析<br>– 变量使用前是否被赋值,方法每条路径都有返回值,受查异常是否被正确处理<br><figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="comment">//参数final</span></div><div class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">foo</span><span class="params">(<span class="keyword">final</span> <span class="keyword">int</span> arg)</span></span>&#123;</div><div class="line">    <span class="keyword">final</span> <span class="keyword">int</span> var = <span class="number">0</span>;</div><div class="line">    <span class="comment">//do sth</span></div><div class="line">&#125;</div><div class="line"></div><div class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">foo</span><span class="params">(<span class="keyword">int</span> arg)</span></span>&#123;</div><div class="line">    <span class="keyword">int</span> var = <span class="number">0</span>;</div><div class="line">    <span class="comment">//do sth</span></div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<blockquote>
<p>final局部变量编译在常量池中没有CONSTANT_Fieldref_info符号引用(实例变量有),对运行期是没有影响的</p>
</blockquote>
<p>3.解语法糖:(编译中)<br>–Java的泛型擦除(编译阶段就变成Object)然后就是强转成T的实际表现,还有自动拆装箱,变长参数<br>4.字节码生成:javac编译最后一个阶段<br>(1)没有构造函数自动创建</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">Main</span> </span>&#123;</div><div class="line"></div><div class="line">    <span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span> </span>&#123;</div><div class="line">        Integer i = <span class="number">10</span>;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line">&gt; javap -c Main.class</div><div class="line">Compiled from &quot;Main.java&quot;</div><div class="line">public class Main &#123;</div><div class="line">  public Main();   //自动创建构造函数</div><div class="line">    Code:</div><div class="line">       0: aload_0</div><div class="line">       1: invokespecial #1                  // Method java/lang/Object.&quot;&lt;init&gt;&quot;:()V</div><div class="line">       4: return</div><div class="line"></div><div class="line">  public static void main(java.lang.String[]);</div><div class="line">    Code:</div><div class="line">       0: bipush        10</div><div class="line">       2: invokestatic  #2                  //自动装箱 Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;</div><div class="line">       5: astore_1</div><div class="line">       6: return</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>4.条件编译<br><figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">if</span>(<span class="keyword">true</span>)&#123;</div><div class="line">    print(<span class="string">"1"</span>);</div><div class="line">&#125;<span class="keyword">else</span>&#123;</div><div class="line">    print(<span class="string">"2"</span>);</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>直接编译成<br>print(“1”)</p>
<h3 id="编译器晚期优化"><a href="#编译器晚期优化" class="headerlink" title="编译器晚期优化"></a>编译器晚期优化</h3><h4 id="JIT即时编译器"><a href="#JIT即时编译器" class="headerlink" title="JIT即时编译器"></a>JIT即时编译器</h4><p>– 热点代码<code>多次调用的方法体,多次执行的循环体</code>的编译(在运行时虚拟机会把代码编译成本地平台相关的机器码)</p>
<p>1.HotSpot为什么要使用解释器与编译器并存的架构(Mixed Mode) java -version<br>答:程序需要迅速启动和执行,解释器可以先发挥作用省去编译时间,程序运行后,编译器开始发挥作用<br>   把越来越多的代码编译成本地代码，还有一个原因是编译期优化失效可以重新退回到解释状态执行</p>
<p>2.HotSpot为什么要实现两个不同的即时编译器,何时使用解释器,编译器<br>答:Client Compiler(简单编译),Server Compiler(深度编译)与解释器和编译器结合理解<br>(1)程序解释执行,触发Client Compiler<br>(2)Client Compiler将字节码编译为本地代码,进行简单的优化<br>(3)随着程序运行会触发Server Compiler编译<br>编译器代码未完成之前都是按解释的方式执行</p>
<p>3.哪些代码会被编译成本地代码<br>HotSpot采用<code>基于计数器的热点探测</code><br>(1)方法调用计数器<code>触发即时请求</code>:方法调用次数超过阈值会触发JIT编译,下次直接请求的已编译成的本地代码<br>(2)回边计数器<code>触发OSR编译</code>:方法体重循环体的代码执行的次数</p>
<h3 id="优化技术概览"><a href="#优化技术概览" class="headerlink" title="优化技术概览"></a>优化技术概览</h3><p>1.公共子表达式消除<br>– int d = a <em> b + b </em> (a + 1) -&gt; int b = 2*E + b<br>2.数组范围检查消除<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">if(foo != null)&#123;</div><div class="line">    return foo.value;</div><div class="line">&#125;else&#123;</div><div class="line">    throw new NullPointException();//检查foo是否为空,用户态转到内核态处理,结束后再回到用户态</div><div class="line">&#125;</div><div class="line">//优化后,省的如果foo经常为空每次都这么检查还不如直接异常</div><div class="line">try&#123;</div><div class="line">    return foo.value;</div><div class="line">&#125;catch(segment_faule)&#123;</div><div class="line">    uncommon_trap();</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>3.方法内联<br>– 把目标方法的代码’复制’到调用的方法中,但是如果有继承关系的只有等到运行时期才能确定调用什么方法<br>4.逃逸分析<br>– 分析对象动态作用域<br>(1)方法逃逸:一个对象在方法中定义被外部方法引用(将参数传给其他方法)<br>(2)线程逃逸:对象被其他线程引用(类变量)<br>这个两种逃逸检测是有目的的:<br>(1)如果对象不会方法逃逸在栈上分配内存这样随着方法结束而销毁就可以减少gc压力<br>(2)如果对象不能被其他线程访问到说明线程安全,这样就可以消除同步原语<br>(3)如果对象不会被外部方法访问且可以拆开这个对象的话,就直接拆开,不创建这个对象而是直接创造出这个对象的成员变量来替代</p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="/uploads/wechat.png" alt="罗天翔 WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="/uploads/ali.jpg" alt="罗天翔 Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/08/20/concurrent/多线程/" rel="next" title="多线程">
                <i class="fa fa-chevron-left"></i> 多线程
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/08/30/mysql/mysql性能优化/" rel="prev" title="mysql性能优化">
                mysql性能优化 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="SOHUCS"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/uploads/avatar.jpg"
               alt="罗天翔" />
          <p class="site-author-name" itemprop="name">罗天翔</p>
           
              <p class="site-description motion-element" itemprop="description">一次就把事情做对.</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives/">
                <span class="site-state-item-count">74</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">15</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/louiegit/" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="" target="_blank" title="微信">
                  
                    <i class="fa fa-fw fa-wechat"></i>
                  
                  微信
                </a>
              </span>
            
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#三类编译过程的代表性编译器"><span class="nav-number">1.</span> <span class="nav-text">三类编译过程的代表性编译器</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#编译器早期优化"><span class="nav-number">1.1.</span> <span class="nav-text">编译器早期优化</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Javac编译器"><span class="nav-number">1.1.1.</span> <span class="nav-text">Javac编译器</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编译器晚期优化"><span class="nav-number">1.2.</span> <span class="nav-text">编译器晚期优化</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#JIT即时编译器"><span class="nav-number">1.2.1.</span> <span class="nav-text">JIT即时编译器</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#优化技术概览"><span class="nav-number">1.3.</span> <span class="nav-text">优化技术概览</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">罗天翔</span>
</div>


<div class="powered-by">
  NBA & Code. What?
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.1"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  




  
    <script type="text/javascript">
    (function(){
      var appid = 'cyt9ceIwz';
      var conf = 'c6226e2bfb7e9c65efc235736edc5074';
      var width = window.innerWidth || document.documentElement.clientWidth;
      if (width < 960) {
      window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){
        window.changyan.api.config({appid:appid,conf:conf})});
      }
    })();
    </script>
    <script type="text/javascript" src="https://assets.changyan.sohu.com/upload/plugins/plugins.count.js"></script>
  




  





  

  

  

  

  

  

</body>
</html>
